﻿using SwitData;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WcfService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface SwitchService
    {

        [OperationContract]
        List<PortableSwitch> GetSwitchList();

        [OperationContract]
        PortableSwitch GetSwitch(int id);

        [OperationContract]
        List<PortableSwitchType> GetSwitchTypes();

        [OperationContract]
        void AddSwitch(PortableSwitch pSwitch);

        [OperationContract]
        void DeleteSwitch(int ID);
    }

   
}
